package com.ymatou.iapi.wxtoken.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.wxtoken.service.RefreshWxTokenCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
import com.ymttest.database.sqlwapper.WXToken2Wapper;
/**
*获取微信Ticket
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_RefreshWxToken{
	private static RefreshWxTokenCall RefreshWxTokenCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("刷新微信信息");
	}

	@Before
	public void caseUp() {
		RefreshWxTokenCall=new RefreshWxTokenCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(RefreshWxTokenCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	@Ignore
	public void Tc_RefreshWxToken_001() {
		Logger.start(true,"刷新微信token");
		try {
			//查看日志 手工验证
			RefreshWxTokenCall.callService();			
			Logger.verifyEquals("ok", RefreshWxTokenCall.getReturnData(), "验证");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}